package com.example.teesystem.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName t_knowledge
 */
@TableName(value ="t_knowledge")
@Data
public class Knowledge implements Serializable {
    /**
     * 主键（key）
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 章节id
     */
    @TableField(value = "chapter_id")
    private Integer chapterId;
    
    /**
     * 课程id
     */
    @TableField(value = "course_id")
    private Integer courseId;

    /**
     * 类型（0：知识，1：能力，2：素质）
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 具体信息
     */
    @TableField(value = "message")
    private String message;

    /**
     * 上传者id
     */
    @TableField(value = "upload_id", fill = FieldFill.INSERT)
    private Integer uploadId;

    /**
     * 更新者id
     */
    @TableField(value = "update_id", fill = FieldFill.INSERT_UPDATE)
    private Integer updateId;

    /**
     * 上一级知识点
     */
    @TableField(value = "parent_id")
    private Integer parentId;

    /**
     * 关联知识点列表
     */
    @TableField(value = "relation_knowledge")
    private String relationKnowledge;

    /**
     * 上传时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 0未删除，1已删除
     */
    @TableField(value = "is_delete")
    @TableLogic
    private Integer isDelete;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}